import 'package:flutter/material.dart';
import 'package:online_study/base/app_title.dart';
import 'package:online_study/theme/colors.dart';
import 'package:online_study/theme/size.dart';

//自定义AppBar
class MyAppBar extends StatelessWidget {
  String _title;

  @override
  Widget build(BuildContext context) {
    return AppBar(
      leading: BackButton(color: ThemeColor.color333333),
      titleSpacing: 0,
      backgroundColor: ThemeColor.colorWhite,
      elevation: ThemeSize.appElevation,
      title: AppTitle("课程详情"),
    );
  }

  MyAppBar(this._title);
}
